package brinary;

public class HexDemo {
    public static void main(String[] args) {
        int n=0x47b98a;
        int m=0b0100_0111_1011_1001_1000_1010;
        System.out.println(Integer.toHexString(n));//按16进制输出
        System.out.println(Integer.toHexString(m));

        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));//按照2进制来输出

        System.out.println(n);
        System.out.println(m);//按照10进制来输出


    }
}
